﻿using FriendStar.Code;
using FriendStar.Domain.Entity.WareHouse;
using FriendStar.Repository.Infrastructure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace FriendStar.Web.Areas.WareHouse.Controllers
{
    public class ProductOnlineStockController : Controller
    {
        //
        // GET: /WareHouse/ProductOnlineStock/

        public ActionResult Index()
        {
            return View();
        }

        #region  冲压在制品入库
        /// <summary>
        /// 冲压在制品入库
        /// </summary>
        /// <returns></returns>
        public ActionResult ProductOnlineEnter()
        {
            ViewBag.FAccountDate = GetAccountDateForProductOnlineStockWareHouse();
            return View();
        }

        /// <summary>
        /// 保存冲压在制品入库信息
        /// </summary>
        /// <param name="item">入库台帐</param>
        /// <param name="detail">入库明细</param>
        /// <returns></returns>
        public ActionResult SaveProductOnlineEnterItem(CYK_11_ML_StoLJKConAccoEntity item, string detail)
        {
            CYK_12_MX_StoLJKListAccoEntity detailEntity = detail.ToObject<CYK_12_MX_StoLJKListAccoEntity>();
            return View();
        }

        public ActionResult ProductOnlineEnterInput()
        {
            return View();
        }

        public ActionResult ProductOnlineEnterInputOrder()
        {
            return View();
        }
        #endregion


        #region 公用
        private string GetAccountDateForProductOnlineStockWareHouse()
        {
            return GetDocumentNum.GetNum(Configs.GetValue("UseUnit"), Configs.GetValue("FactoryFlag"), "台账日期冲压车间", OperatorProvider.Provider.GetCurrent().UserCode, "", "临时");
        }
        #endregion 公用



    }
}
